<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function chooseFunction() {
		window.open("updateRoleFunction.jsp")
	}
	function submitFunction() {
		var formElement=document.getElementById("myform");
		with(formElement){
			action="${pageContext.request.contextPath}/servlet/updateroleservlet";
			method="post";
			sumit();
		}
	}
</script>
</head>
<body>
<form id="myform">
	id:<input type="text" name="role_id" readonly="readonly" value="${updaterole.roleId }"><br>
	角色名称：<input type="text" name="role_name" value="${updaterole.roleName }"><br>
	<button onclick="chooseFunction()">更新权限</button>
	<p id="function" name="functions" value="${updaterole.roleName }"></p>
	<input type="text" value="更新" onclick="submitFunction()">
	<input type="reset" value="清空">
</form>
</body>
</html>